package com.yonyou.cyxdms.sysAuth.service.feign;

import com.yonyou.cyx.framework.bean.dto.framework.RestResultResponse;
import com.yonyou.cyxdms.basedata.client.domains.vo.DictVO;
import com.yonyou.cyxdms.framework.config.FeiginHeaderConfig;
import com.yonyou.cyxdms.sysAuth.service.dto.CodeDTO;
import com.yonyou.cyxdms.sysAuth.service.dto.vehicleBrand.BrandCacheDTO;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestParam;

import java.util.List;
import java.util.Map;

@FeignClient(name = "sysbasedata-service", configuration = FeiginHeaderConfig.class)
public interface BaseDataService {

    @GetMapping(value = "/code/allCode")
    public RestResultResponse<List<DictVO>> allCode();

    @GetMapping(value = "/code/allCodeAvailable")
    RestResultResponse<List<DictVO>> allCodeAvailable();

    @GetMapping(value = "/code/queryTcCodeByType")
    public RestResultResponse<List<CodeDTO>> queryTcCodeByType(@RequestParam(name = "queryParam") Map<String, Object> queryParam);

    @GetMapping(value = "/brand/queryBrandByCondition")
    public RestResultResponse<List<BrandCacheDTO>> queryBrandByCondition(@RequestParam(name = "queryParam") Map<String, Object> queryParam);

    @GetMapping(value = "/brand/queryBrand2")
    public RestResultResponse<List<Map>> queryBrand2(@RequestParam(name = "queryParam") Map<String, Object> queryParam);

}
